package com.rdxer.core.security;

import lombok.Data;
import org.springframework.stereotype.Component;


//@Configuration
//@ConfigurationProperties(prefix = "jwtconf")
@Data
@Component
public class JWTConfiguration {

    public  String jwt_prefix = "Bearer";
    public  String header_auth_key = "authorization";
    public  String header_refresh_key = "RefreshToken";

    public  String secret = "nRvyYC4soFxBdZ-F-5Nnzz5USXstR1YylsTd-mA0aKtI9HUlriGrtkf-TiuDapkLiUCogO3JOK7kwZisrHp6wA";

    /// 超时时长 1 天
    public  long sessionTime =  (1000 * 60 * 60) * 24;

    /// 超时时长 30 天
    public  long sessionTime_remember_me =  (1000L * 60 * 60) * 24 * 30;

}
